package com.ly.heart.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.ly.common.core.domain.BaseVo;
import lombok.Data;
import com.ly.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 金蝶-采购条款对象 erp_king_purchase_terms
 * @author cxl
 * @date 2024-06-23
 */
@TableName ("erp_king_purchase_terms")
@ApiModel (value = "erp_king_purchase_terms对象", description = "金蝶-采购条款")
@Data
public class KingPurchaseTermsEntity extends BaseVo {

    /**
     * 主键id
     */
    @TableId (type = IdType.INPUT)
    private String id;

    /**
     * 编码
     */
    @ApiModelProperty ("编码")
    @TableField ("code")
    @Excel (name = "编码")
    private String code;

    /**
     * 名称
     */
    @ApiModelProperty ("名称")
    @TableField ("name")
    @Excel (name = "名称")
    private String name;

    /**
     * 条款类型
     */
    @ApiModelProperty ("条款类型")
    @TableField ("terms_type")
    @Excel (name = "条款类型")
    private String termsType;

    @ApiModelProperty ("类型；1：采购条款；2：销售条款")
    @TableField ("type")
    @Excel (name = "类型")
    private Integer type;

    @ApiModelProperty ("是否已推；1：是；2：否")
    @TableField ("is_send")
    @Excel (name = "类型")
    private Integer isSend;

    @ApiModelProperty ("流程实例id")
    @TableField ("instance_id")
    private String instanceId;

    /**
     * 状态
     */
    @ApiModelProperty ("状态")
    @TableField ("state")
    @Excel (name = "状态")
    private String state;

    /**
     * 描述
     */
    @ApiModelProperty ("描述")
    @TableField ("describe_info")
    @Excel (name = "描述")
    private String describeInfo;

    /**
     * 条款内容
     */
    @ApiModelProperty ("条款内容")
    @TableField ("terms_content")
    @Excel (name = "条款内容")
    private String termsContent;

    @ApiModelProperty ("是否禁用；1：正常；2：禁用")
    @TableField ("is_disabled")
    @Excel (name = "逻辑删除")
    private Integer isDisabled;

    @ApiModelProperty ("禁用时间")
    @TableField ("disabled_time")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date disabledTime;

    /**
     * 录入人
     */
    @ApiModelProperty ("录入人")
    @TableField ("user_id")
    @Excel (name = "录入人")
    private String userId;

    @ApiModelProperty ("创建时间")
    @JsonFormat (pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField ("create_time")
    private Date createTime;

    @ApiModelProperty ("更新时间")
    @TableField ("change_time")
    @JsonFormat (pattern = "yyyy-MM-dd")
    @Excel (name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date changeTime;

    @ApiModelProperty ("逻辑删除")
    @TableField ("is_used")
    @Excel (name = "逻辑删除")
    private Integer isUsed;


    @ApiModelProperty ("业务type")
    @TableField (exist = false)
    private String businessType;

    @ApiModelProperty ("流程模型id")
    @TableField (exist = false)
    private String modelId;
}
